﻿using Scribble.Repositories;

namespace Scribble.Services
{
    public class TagService : ITagService
    {
        private readonly ITagRepository repository;

        public TagService(ITagRepository repository)
        {
            this.repository = repository;
        }

        public Tag GetByTitle(string urlTitle)
        {
            return repository.GetByTitle(urlTitle);
        }
    }
}